﻿#ifndef LARGEFILEUPLOAD_H
#define LARGEFILEUPLOAD_H
#include <QtCore>

class LargeFileUpload
{
public:
    LargeFileUpload();
    ~LargeFileUpload();

    uint64_t getId() const;
    void setId(const uint64_t &value);

    QString getMd5() const;
    void setMd5(const QString &value);

    QString getFileName() const;
    void setFileName(const QString &value);

    QString getAbsolutePath() const;
    void setAbsolutePath(const QString &value);

    uint64_t getUploadedSize() const;
    void setUploadedSize(const uint64_t &value);

    uint64_t getTotalSize() const;
    void setTotalSize(const uint64_t &value);

    uint8_t getUploadStatus() const;
    void setUploadStatus(const uint8_t &value);

    static QByteArray toJson(LargeFileUpload &largeFile);
    static LargeFileUpload fromJson(QByteArray &byteArray);

private:
    uint64_t id;
    QString md5;
    QString fileName;
    QString absolutePath;
    uint64_t uploadedSize;
    uint64_t totalSize;
    uint8_t uploadStatus;
};

#endif // LARGEFILEUPLOAD_H
